<?php
	defined('RUN') or die('No access');

	class DashboardController
	{
		public function __construct()
		{
			if (!Auth::check('acp'))
			{
				Url::redirect('admin/auth/login');
			}
		}

		public function index()
		{
			$data = Model::get('admin')->getLayoutData();

			$data['content_file'] = 'dashboard/index.tpl';
			View::load('layout.tpl', $data, 'admin');
		}
	}
